<script setup lang="ts">
import { ref } from "vue";

import usePublicConfigStore from "./stores/modules/public-config";
import { theme } from "ant-design-vue";
const publicConfigStore = usePublicConfigStore();
import zhCN from "ant-design-vue/es/locale/zh_CN";
import dayjs from "dayjs";
import "dayjs/locale/zh-cn";
dayjs.locale("zh-cn");
const locale = ref(zhCN);
</script>

<template>
 
  <a-config-provider
    :locale="locale"
    ,
    :theme="{
      token: {
        colorPrimary: publicConfigStore.theme,
      },
      algorithm: publicConfigStore.algorithm
        ? theme.darkAlgorithm
        : theme.defaultAlgorithm,
    }"
  >
    <RouterView />
  </a-config-provider>
</template>

<style>
</style>
